package cn.wonderland.community.service.impl;

import cn.wonderland.community.domain.Unit;
import cn.wonderland.community.mapper.UnitMapper;
import cn.wonderland.community.service.IUnitService;
import cn.wonderland.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 单元表 服务实现类
 * </p>
 *
 * @author wonderland
 * @since 2023-05-04
 */
@Service
public class UnitServiceImpl extends BaseServiceImpl<Unit> implements IUnitService {
    @Autowired
    private UnitMapper unitMapper;

    @Override
    public List<Unit> findUnitByBuildingId(Long id) {
       return unitMapper.findUnitByBuildingId(id);
    }
}
